package com.lovo.sys.bean;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.aspectj.runtime.CFlow;

import java.util.List;

@TableName("promotional_schemes")
@Getter
@Setter
@NoArgsConstructor
@ApiModel(value = "促销方案实体", description = "促销方案实体")
public class PromotionalSchemesBean {

    @ApiModelProperty("促销方案id")
    @TableId(value = "pk_promotionalId", type = IdType.AUTO)
    private long promotionalId;

    @ApiModelProperty("描述")
    @TableField("p_description")
    private String description;
    @ApiModelProperty("审核状态0-待审核1-审核通过2-审核未通过")
    @TableField("p_Audit")
    private int Audit = 0;

    @TableField("p_status")
    @ApiModelProperty("状态0-未结束1--已结束")
    private int status = 0;
    @TableField("p_number")
    @ApiModelProperty("促销编号")
    private String number;

    @TableField("p_rate")
    @ApiModelProperty(value = "折扣率")
    private float rate;

    @TableField(exist = false)
    @ApiModelProperty("商品的id数组")
    private Integer[] productIdArr;
    /**
     * 商品名集合
     */
    @TableField(exist = false)
    private List<String> productName;

    public PromotionalSchemesBean(String description,float rate) {
        this.description = description;
        this.rate = rate;
    }
}
